#include <iostream>
using namespace std;
#include "sparseMatrix.h"
int main() {
	sparseMatrix<int> matrix;
	sparseMatrix<int> matrix1(4, 5, 4);
	matrix1.input(cin, cout);
	sparseMatrix<int> matrix2(5, 2,3);
	matrix2.input(cin, cout);
	matrix1.matrixTimes(matrix1, matrix2, matrix);
	matrix1.output(cout);
	matrix2.output(cout);
	matrix.output(cout);
	return 0;
}